<?php

/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/

Route::get('/', function () {
    return view('welcome');
});



Route::any('/admins/login','Admin\LoginController@index');
Route::any('/admins/index','Admin\IndexController@index');
Route::any('/admins/typography','Admin\IndexController@typography');




/*------------------------前台路由---------------------------*/
// 首页
Route::any('/index','Home\IndexController@index');

//登陆页面
Route::any('/login','Home\LoginController@login');
//注册页面
Route::any('/register','Home\LoginController@register');
//登陆退出
Route::any('/login_out','Home\LoginController@login_out');



// 公司
Route::any('/companylist','Home\CompanyController@companylist');
// 论坛
Route::any('toForum','Home\ToForumController@toForum');

// 我的简历
Route::any('jianli','Home\JianliController@jianli');
// 收藏的职位
Route::any('collections','Home\CollectionsController@collections');

// 我的订阅
Route::any('subscribe','Home\SubscribeController@subscribe');

// 发布职位
Route::any('create','Home\CreateController@create');

//搜索页面
Route::any('/list','Home\IndexController@list');
//首页搜索
Route::any('/search','Home\SearchController@search');




/*
 *后台
 */
//主页
Route::any('/admin/index','admin\IndexController@index');
//登录
Route::any('/admin/login','admin\IndexController@login');
//Route::any('/admin/outLogin','admin\IndexController@outLogin');
//公共
//权限控制
Route::group(['middleware'=>'admin_xf'],function(){
	//admin
	Route::any('/admin/top','admin\IndexController@top');
	Route::any('/admin/left','admin\IndexController@left');
	Route::any('/admin/main','admin\IndexController@main');
	Route::any('/admin/checku','admin\IndexController@checku');
	Route::any('/admin/adminList','admin\AdminController@adminList');
	Route::any('/admin/roleList','admin\AdminController@roleList');
	Route::any('/admin/powerList','admin\AdminController@powerList');
	//config
	Route::any('/admin/configShow','admin\ConfigsController@configShow');
	Route::any('/admin/sliderList','admin\ConfigsController@sliderList');
	Route::any('/admin/linkList','admin\ConfigsController@linkList');
	//Enterprise
	Route::any('/admin/enterprise','admin\EnterpriseController@enterprise');
	Route::any('/admin/enterpriseImg','admin\EnterpriseController@enterpriseImg');
	//post
	Route::any('/admin/positionList','admin\PositionController@positionList');
	Route::any('/admin/positionAdd','admin\PositionController@positionAdd');
	Route::any('/admin/positionUpdate','admin\PositionController@positionUpdate');
	//user
	Route::any('/admin/userList','admin\UserController@userList');
	Route::any('/admin/resumeList','admin\UserController@resumeList');
	Route::any('/admin/messageList','admin\UserController@messageList');
});


